<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>宝钢彩涂板管理后台</title>
	<link rel="stylesheet" href="/static/css/normalize.css">
	<link rel="stylesheet" href="/static/css/add.css">
	<link rel="stylesheet" href="/static/css/color-style.css">
	<link rel="stylesheet" href="/static/css/font-awesome.min.css">
	<script type="text/javascript" src="/static/js/jquery-1.11.1.min.js"></script>
	<script type="text/javascript" src="/js/common.js"></script>
</head>
<body>
<div class="form-box">
	<div class="top-bar">
		<h5 class="nav-title">编辑轮播</h5>
		<div class="button-container">
			<a href="/admin/carousels/lst" class='button -green center' style="width: 60px; height: 30px;">返回</a>
		</div>
	</div>
	<form action="/admin/carousels/edit" method="POST" enctype="multipart/form-data">
		<input type="hidden" name="id" value="{$case.id}">
		<div class="case-admin-left">
			<input type="text" class="form-control" value="{$case.link}" name="link" id="title" placeholder="在此输入链接" value="">
		</div>
		<div class="case-admin-left">
			<input type="text" class="form-control" value="{$case.sort}" name="sort" id="title" placeholder="在此输入排序值" value="">
		</div>
		<div class="case-admin-right" style="width: 100%;">
			<div class="panel">
				<div class="panel-heading">
					<h3 class="panel-title">轮播图</h3>
				</div>
				<div class="panel-body">
					<div class="form-group">
						<div id="photo1">
							<input type="file" id="imagies" onClick="uploadPhoto('#imagies','photo1')"  style="margin-bottom: 5px;">
							<img src="{$case.imagies}" class="img-case-dp" style="width: 120px; height: 85px;">
							<input type="hidden" name="imagies" value="{$case.imagies}">
							<p style="color: red; font-size: 12px; margin-top: 5px;">需等待大约5秒钟！</p>
						</div>
					</div>
				</div>
			</div>
			<div class="panel">
				<div class="panel-heading">
					<h3 class="panel-title">发布选项</h3>
				</div>
				<div class="panel-body">
					<div class="form-group">
						<div class="button-container">
							<button type="submit" class="button -blue center" style="width: 100px;">确认</button>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="clear"></div>
	</form>
</div>
</body>
</html>